package com.nlelpct.manage.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;

import com.nlelpct.manage.model.entity.SysEmployeeAndDept;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * 员工部门关联表 Mapper 接口
 * </p>
 *
 * @author 小马
 * @since 2023-07-12
 */
public interface SysEmployeeAndDeptMapper extends BaseMapper<SysEmployeeAndDept> {


    /**
     * 根据员工id查找部门id列表
     * @param employeeId 员工id
     * @return 部门id列表
     */
    List<String> selectDeptIdsByEmployeeId(@Param("employeeId") String employeeId);

    /**
     * 根据员工id查找部门id
     * @param employeeId 员工id
     * @return 部门id
     */
    String selectDeptIdByEmployeeId(@Param("employeeId") String employeeId);
}
